<template>
  <div class="about">
    <h1 :class="c1">{{ msg }}</h1>
    <h2>{{ user.username }} </h2>
    <h2>{{ user.age }} </h2>
    <br/>
    <input type="text" v-model="user.username">
    
  </div>
</template>
<script setup>
  import {ref,reactive} from 'vue'
  let c1= "red"
  let msg = "这是一个消息"
  let user = ref({username:"admin",age:18,gender:"男"})


</script>


<style>
@media (min-width: 1024px) {
  .c1{
    color:red;
  }
  .about {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
}
</style>
